.class public Lcom/kwad/sdk/core/k/b/h;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/kwad/sdk/core/k/a/a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/kwad/sdk/core/k/b/h$a;
    }
.end annotation


# instance fields
.field private final a:Lcom/kwad/sdk/core/k/a;


# direct methods
.method public constructor <init>(Lcom/kwad/sdk/core/k/a;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/kwad/sdk/core/k/b/h;->a:Lcom/kwad/sdk/core/k/a;

    return-void
.end method

.method private a(Lcom/kwad/sdk/core/k/b/h$a;)V
    .locals 3
    .param p1    # Lcom/kwad/sdk/core/k/b/h$a;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SwitchIntDef"
        }
    .end annotation

    invoke-static {p1}, Lcom/kwad/sdk/core/k/b/h$a;->a(Lcom/kwad/sdk/core/k/b/h$a;)I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    const-string p1, "WebCardLogHandler"

    const-string v0, "handleH5Log actionType is AD_ITEM_IMPRESSION"

    invoke-static {p1, v0}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    invoke-static {p1}, Lcom/kwad/sdk/core/k/b/h$a;->a(Lcom/kwad/sdk/core/k/b/h$a;)I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/kwad/sdk/core/k/b/h;->a:Lcom/kwad/sdk/core/k/a;

    iget-object v1, v0, Lcom/kwad/sdk/core/k/a;->c:Lcom/kwad/sdk/core/view/AdBaseFrameLayout;

    if-eqz v1, :cond_1

    iget-object v2, v0, Lcom/kwad/sdk/core/k/a;->b:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget-object v0, v0, Lcom/kwad/sdk/core/k/a;->d:Lorg/json/JSONObject;

    invoke-virtual {v1}, Lcom/kwad/sdk/core/view/AdBaseFrameLayout;->getTouchCoords()Lcom/kwad/sdk/c/g$a;

    move-result-object v1

    invoke-static {p1}, Lcom/kwad/sdk/core/k/b/h$a;->b(Lcom/kwad/sdk/core/k/b/h$a;)Ljava/lang/String;

    move-result-object p1

    invoke-static {v2, v0, v1, p1}, Lcom/kwad/sdk/core/g/b;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;Lorg/json/JSONObject;Lcom/kwad/sdk/c/g$a;Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    iget-object v1, v0, Lcom/kwad/sdk/core/k/a;->b:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget-object v0, v0, Lcom/kwad/sdk/core/k/a;->d:Lorg/json/JSONObject;

    invoke-static {p1}, Lcom/kwad/sdk/core/k/b/h$a;->b(Lcom/kwad/sdk/core/k/b/h$a;)Ljava/lang/String;

    move-result-object p1

    invoke-static {v1, v0, p1}, Lcom/kwad/sdk/core/g/b;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;Lorg/json/JSONObject;Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/kwad/sdk/core/k/b/h;->a:Lcom/kwad/sdk/core/k/a;

    iget-object v0, v0, Lcom/kwad/sdk/core/k/a;->b:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {p1}, Lcom/kwad/sdk/core/k/b/h$a;->a(Lcom/kwad/sdk/core/k/b/h$a;)I

    move-result v1

    iget-object v2, p0, Lcom/kwad/sdk/core/k/b/h;->a:Lcom/kwad/sdk/core/k/a;

    iget-object v2, v2, Lcom/kwad/sdk/core/k/a;->d:Lorg/json/JSONObject;

    invoke-static {p1}, Lcom/kwad/sdk/core/k/b/h$a;->b(Lcom/kwad/sdk/core/k/b/h$a;)Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, v1, v2, p1}, Lcom/kwad/sdk/core/g/b;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;ILorg/json/JSONObject;Ljava/lang/String;)V

    :goto_0
    return-void
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    const-string v0, "log"

    return-object v0
.end method

.method public a(Ljava/lang/String;Lcom/kwad/sdk/core/k/a/c;)V
    .locals 3
    .param p2    # Lcom/kwad/sdk/core/k/a/c;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    iget-object v0, p0, Lcom/kwad/sdk/core/k/b/h;->a:Lcom/kwad/sdk/core/k/a;

    iget-object v0, v0, Lcom/kwad/sdk/core/k/a;->b:Lcom/kwad/sdk/core/response/model/AdTemplate;

    const/4 v1, -0x1

    if-nez v0, :cond_0

    const-string v0, "native adTemplate is null"

    invoke-interface {p2, v1, v0}, Lcom/kwad/sdk/core/k/a/c;->a(ILjava/lang/String;)V

    :cond_0
    :try_start_0
    new-instance v0, Lcom/kwad/sdk/core/k/b/h$a;

    invoke-direct {v0}, Lcom/kwad/sdk/core/k/b/h$a;-><init>()V

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v2}, Lcom/kwad/sdk/core/k/b/h$a;->a(Lorg/json/JSONObject;)V

    invoke-direct {p0, v0}, Lcom/kwad/sdk/core/k/b/h;->a(Lcom/kwad/sdk/core/k/b/h$a;)V

    const/4 p1, 0x0

    invoke-interface {p2, p1}, Lcom/kwad/sdk/core/k/a/c;->a(Lcom/kwad/sdk/core/b;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    invoke-static {p1}, Lcom/kwad/sdk/core/d/b;->a(Ljava/lang/Throwable;)V

    invoke-virtual {p1}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-interface {p2, v1, p1}, Lcom/kwad/sdk/core/k/a/c;->a(ILjava/lang/String;)V

    :goto_0
    return-void
.end method

.method public b()V
    .locals 0

    return-void
.end method
